<%@ include file="/html/init.jsp" %>

<portlet:actionURL var="delURL">
	<portlet:param name="<%= ActionRequest.ACTION_NAME %>" value="deleteRows" />
	<portlet:param name="tableId" value="<%= String.valueOf(dynaTableId) %>" />
</portlet:actionURL>

<% 
	ResultRow resultRow = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
	DynaBean dynaBean = (DynaBean) resultRow.getObject();
	String deleteRowLink = "javascript:" + ((javax.portlet.RenderResponse)request.getAttribute("javax.portlet.response")).getNamespace()+ "deleteRow(" + dynaBean.get("classPK").toString() +")";
	String detailLink =    "javascript:" + ((javax.portlet.RenderResponse)request.getAttribute("javax.portlet.response")).getNamespace() + "detailView(" + dynaBean.get("classPK").toString() + ")";
%>
<liferay-ui:icon-menu>	
	<liferay-ui:icon image="view" message="View" url="<%= detailLink %>" />
	<liferay-ui:icon image="delete" message="delete" url="<%= deleteRowLink %>" />
</liferay-ui:icon-menu>